Improve XendCheckpoint's forkHelper error handling.
authorBrendan Cully <brendan@cs.ubc.ca>
Thu, 14 Dec 2006 01:45:50 +0000 (17:45 -0800)
committerBrendan Cully <brendan@cs.ubc.ca>
Thu, 14 Dec 2006 01:45:50 +0000 (17:45 -0800)
commit24a6ed484bf95f363a52b226e1edcd775eef1812
tree55c85002b3ab11ae3e950780514625fca768cc4e
parent0a38a347b755a496b16302db1bd4469d402894db
Improve XendCheckpoint's forkHelper error handling.

When inputHandler raises an exception, close stdin and stdout in the
child before attempting to close stderr, which is held open by a
separate thread. Without this patch, exceptions raised by device
migration caused xend to hang on child.childerr.close().

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
tools/python/xen/xend/XendCheckpoint.py